package com.qf.qfcenterdata.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.data.mongodb.core.mapping.MongoId;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("user")
public class User {

    @MongoId
    private ObjectId _id;

    @Field("name")
    private String name;
    private Integer age;
    private String gender;
    private String loc;
}
